const { UMI_ENV, PLATFORM } = process.env;

const plugins: string[] = [];

if (UMI_ENV === 'dev') {
  plugins.push('react-dev-inspector/plugins/umi/react-inspector');
}

if (PLATFORM === 'h5') {
  plugins.push('@alitajs/hd');
}
export default plugins;
